<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>TinyLink : {{title}}</title>
	<link rel="shortcut icon" href="/images/favicon.ico" type="image/x-icon">
    <link type="text/css" rel="stylesheet" href="/css/reset.css" />
    <link type="text/css" rel="stylesheet" href="/css/main.css" />
</head>
<body>
	<div id="page_wrapper">
	  	<div id="header">
		  	<div id="top_bar">
		  		<div id="app_name"><a href="/">TinyLink</a></div>
				<div id="user_info">
				    {% if user %}
						<b>{{ user.nickname }}</b>
					{% else %}
						<b>Not logged in</b>
				    {% endif %}
					| <a href="#settings">Settings</a>
					| <a href="/Help">Help</a>
					| <a href="{{ login_url }}">{% if user %}Logout{% else %}Login{% endif %}</a> 
				</div>
				<div class="clearfix"></div>
		  	</div>
			<div class="large_title"><h1>{{title}}</h1></div>
			<div class="search">
				<form action="/search">
					<label for="top_search">Search:</label><input id="top_search" type="text"><input type="submit" value="Go">
				</form>
			</div>
		</div>
		<div id="content">{% block content %}{% endblock %}</div>
		<div id="footer">Copyright (c) Tiger, 2008. Powered by <a href="http://code.google.com/appengine/">Google Apps Engine</a></div>
	</div>
</body>
</html>
